import { RouteRecordRaw } from 'vue-router'
import Index from '@/views/index.vue'

// 基础路由
const baseRoutes: RouteRecordRaw[] = [
  { path: '/', component: Index },
  { path: '/401', component: () => import('@/views/error/401.vue') },
  { path: '/404', component: () => import('@/views/error/404.vue') },
  { path: '/:catchAll(.*)', redirect: '/404' }
]

export default baseRoutes
